<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script !src="">
    class Animal {
        constructor(name) {
            this.name = name
        }
        getName() {
            return this.name
        }
    }

    class Dog extends Animal {
        constructor(name, age) {
            super(name)
            this.age = age
        }
    }
</script>
